Skip to content

Resolve DevPanel CLI revision through authenticated Git - #323

Merged
darrenoh merged 2 commits into
mainfrom
copilot/fix-check-cached-devpanel-cli-revision
Nov 12, 2026
Merged

darrenoh merged 2 commits into
mainfrom
copilot/fix-check-cached-devpanel-cli-revision

Conversation

Copilot AI commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

The updater’s “Check cached DevPanel CLI revision” job failed when GitLab’s commits API returned HTTP 404, before checking the cache.

  • Revision lookup: Resolve the upstream default-branch SHA with authenticated git ls-remote:
    git ls-remote https://gitlab.com/devpanel-vn/cli.git HEAD
  • Credentials: Use GITLAB_USER and GITLAB_TOKEN with repository-read access; the updater no longer requires GitLab API access.
  • Documentation: Update the workflow guidance and README to reflect the revised lookup and credential requirements.

Co-authored-by: darrenoh <2293701+darrenoh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Check cached DevPanel CLI revision' Resolve DevPanel CLI revision through authenticated Git Nov 12, 2026
Copilot AI requested a review from darrenoh November 12, 2026 04:13
@darrenoh
darrenoh marked this pull request as ready for review November 12, 2026 05:00
@darrenoh
darrenoh requested a balanced review from Copilot November 12, 2026 05:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review identifies no active issues in the change to authenticated Git-based revision lookup.

No open issues 🎉

What changed in this PR

This PR replaces the DevPanel CLI updater’s failing GitLab API revision lookup with authenticated Git access, allowing revision checks without API permissions.

Changes:

  • Resolve the upstream default-branch SHA using git ls-remote before checking the revision cache.
  • Validate GITLAB_USER and use it with GITLAB_TOKEN for Git authentication.
  • Update documentation and task tracking to require only repository-read access.
File Description
TODO.md Updates credential requirements and records the revision-lookup fix.
README.md Documents authenticated Git lookup and removes the API-access requirement.
AGENTS.md Aligns workflow guidance with Git-based revision resolution.
.github/​workflows/​update-devpanel-cli.yml Replaces the API request with authenticated git ls-remote and validates the username.

Review effort: Balanced

@darrenoh
darrenoh merged commit 90a35f7 into main Nov 12, 2026
9 checks passed
@darrenoh
darrenoh deleted the copilot/fix-check-cached-devpanel-cli-revision branch November 12, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants